/**
 * Project: ameba.biz
 * 
 * File Created at 2015年12月15日
 * $Id$
 * 
 * Copyright 2015 dface.cn Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * dface Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with www.dface.cn
 */
package cn.dface.ameba.biz.service;

import java.util.List;

import cn.dface.ameba.biz.vo.BucketVo;
import cn.dface.ameba.biz.vo.ResourceVo;
import cn.dface.framework.core.page.PageModel;
import cn.dface.framework.core.vo.ResultVo;

/**
 * StorageService
 * @author LVZY
 *
 */
public interface StorageService {
    
    public ResourceVo save(ResourceVo resource);
    
    public ResultVo sendToQiniuAndSaveToDB(ResourceVo resource);
    
    public Integer countInBucket(Integer bucketId, String descKey, Integer pageSize);
    
    public PageModel getPageOfResource(Integer bucketId, String descKey, Integer pageNo, Integer pageSize);
    
    public BucketVo save(BucketVo bucket);
    
    public List<BucketVo> getAllOfBucket();
    
    public BucketVo getOneOfBucket(Integer id);
    
    public void updateBucket(BucketVo bucket);
    
}
